#切换整个游戏规则控制器的页面（+3）

#页面限制
$execute at @n[nbt={UUID:$(owner)}] positioned ^1 ^ ^ store result score #ugunp.int1 temp run data get entity @n[tag=UI-gamerule_control.ctr.DM,distance=..1,type=marker] data.SG
execute store result score #ugunp.int2 temp run data get storage dab:system gameRule
scoreboard players remove #ugunp.int2 temp 1
$execute if score #ugunp.int1 temp >= #ugunp.int2 temp run return run function dab:system/ui/gamerules/ui_next_page_fail {owner:$(owner)}

#切换
execute as @n[tag=UI-gamerule_control.NP_button_I,distance=..1] on target run playsound block.note_block.hat

$execute as @e[tag=UI-gamerule_control.ctr,distance=..10,type=item_display] if data entity @s Passengers[{Tags:["util.entity_owner.marker"]}].data{owner:$(owner)} at @s run function dab:system/ui/gamerules/next_page with entity @s Passengers[{Tags:["UI-gamerule_control.ctr.DM"]}].data

data remove entity @n[tag=UI-gamerule_control.NP_button_I,distance=..1] interaction
scoreboard players reset #ugunp.int1 temp
scoreboard players reset #ugunp.int2 temp